package net.da.client.dto;

import java.util.ArrayList;
import java.util.List;

import com.google.gwt.user.client.rpc.IsSerializable;

public abstract class AbstractResponseData implements IsSerializable {
	
	
	private String authorizationCode;
	
	private List errors;
	
	public AbstractResponseData() {
        super();
        errors = new ArrayList();
    }

    public List getErrors() {
        return new ArrayList(errors);
    }

    public void addError(DaErrorData error) {
        errors.add(error);
    }

    public boolean hasErrors() {
        return !errors.isEmpty();
    }

	public String getAuthorizationCode() {
		return authorizationCode;
	}

	public void setAuthorizationCode(String authorizationCode) {
		this.authorizationCode = authorizationCode;
	}

   

}
